/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.b.b;

import android.content.Context;
import android.os.AsyncTask;
import android.text.TextUtils;
import java.util.Map;

public class a extends AsyncTask {
    private Context a;
    private String b;
    private d c;

    public a(Context paramContext, String paramString, d paramd) {
        this.b = paramString;
        this.c = paramd;
        this.a = paramContext;
    }

    protected void onPreExecute() {
        if (this.c == null)
            return;
        this.c.a();
    }

    protected void a(e parame) {
        if (this.c == null)
            return;
        this.c.a(parame);
    }

    protected e a(Map[] paramArrayOfMap) {
        if (TextUtils.isEmpty(this.b))
            return null;
        int i = (paramArrayOfMap == null) ? 0 : paramArrayOfMap.length;
        if (i == 1) {
            if (this.c != null)
                paramArrayOfMap[0] = this.c.a(paramArrayOfMap[0]);
            return h.a(this.a, this.b, paramArrayOfMap[0]);
        }
        if (this.c != null) {
            paramArrayOfMap[0] = this.c.a(paramArrayOfMap[0]);
            paramArrayOfMap[1] = this.c.b(paramArrayOfMap[1]);
        }
        if ((paramArrayOfMap != null) && (paramArrayOfMap.length >= 2))
            return h.a(this.a, this.b, paramArrayOfMap[0], paramArrayOfMap[1]);
        return null;
    }
}